class GlobalObserver < ActiveRecord::Observer
  observe :comment

  cattr_accessor :current_user

  #Created and last modified by user
  def before_create(record)
    record.user_id = @@current_user.user_info.id
  end

  def before_update(record)
    record.user_id = @@current_user.user_info.id
  end
end
